|
|
|
|
|
|
|
The workshop includes quiz questions to help gauge your grasp of the material. You'll find the answers to this quiz in Appendix A. Even if you feel that you totally understand the concepts presented here, you should work through the quiz anyway. The last section is an exercise or two that you might work through to help reinforce your learning. |
|
|
|
|
|
|
|
|
1. What is the role of OOP in solution development? |
|
|
|
|
|
|
|
|
2. What is a long-term benefit of encapsulation? |
|
|
|
|
|
|
|
|
3. How are the terms type and interface related? |
|
|
|
|
|
|
|
|
4. How do you realize interface inheritance in Visual Basic? |
|
|
|
|
|
|
|
|
5. What's the difference between collection and aggregate objects? |
|
|
|
|
|
|
|
|
6. What are methods, accessors, and mutators? |
|
|
|
|
|
|
|
|
7. What's the difference between a subsystem and a category? |
|
|
|
|
|
|
|
|
8. What is a class diagram? a sequence diagram? |
|
|
|
|
|
|
|
|
1. Open a new Standard Visual Basic project. Use the Class Builder utility to create two classes with the following design specification: |
|
|
|
 |
|
|
|
|
Class: MedicalPatient
Methods:
Private Sub payBill
Public Function requestMedicalService
Attributes:
Name As String
ChargeCardType As String
Class: Physician
Methods:
Public Function renderService
Private Sub analyzeSymptoms()
Private Sub billPatient(argPatientObject As Object)
Properties:
Name As String
Certification As String
Degree As String |
|
|
|
|
|